package com.framework.dubbo.producer.config;

/**
 * 描述：
 * 常量类
 * @author xianggj
 * @Date 2021/8/25 15:53
 **/
public class Constants {


    /**
     * http数据
     */
    public static final String HTTP = "http://";

    /**
     * 空字符串
     */
    public static final String EMPTY = "";


    /**
     * 冒号
     */
    public static final String COLON = ":";


    /**
     * 分割
     */
    public static final String SEPARATOR = "/";


    /**
     * 点
     */
    public static final String DOT = ".";

    /**
     * 换行符
     */
    public static final String ENTER = "\r\n";

    /**
     * 空格
     */
    public static final String WITHE_SPACE = " ";

    /**
     * https数据
     */
    public static final String HTTPS = "https://";

    public static String getHttp(String host, String port){
        return HTTP + host + COLON + port;
    }

    public static String getHttps(String host, String port){
        return HTTPS + host + COLON + port;
    }

}
